﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AcadRibbon.Ribbons.Json.Model;
public class RibbonItem
{
    public string? Id { get; set; } = null;
    /// <summary>
    /// 用于标记实例化的对象名称
    /// </summary>
    public object? Tag { get; set; } = null;
    /// <summary>
    /// 如果设置显示文本，会在界面上显示该属性值
    /// </summary>
    public string? Text { get; set; } = null;
    /// <summary>
    /// 按钮的名称，可用于代码查找按钮
    /// </summary>
    public string? Name { get; set; } = null;

    /// <summary>
    /// public System.Windows.Media.ImageSource 类型
    /// </summary>
    public string? Image { get; set; } = null;
    /// <summary>
    /// public System.Windows.Media.ImageSource 类型
    /// </summary>
    public string? LargeImage { get; set; } = null;
    /// <summary>
    /// 是否显示文本
    /// </summary>
    public bool ShowText { get; set; } = true;
    /// <summary>
    /// 是否显示图片
    /// </summary>
    public bool ShowImage { get; set; } = false;
    /// <summary>
    /// 描述
    /// </summary>
    public string? Description { get; set; } = null;
    /// <summary>
    /// 是否启用
    /// </summary>
    public bool IsEnabled { get; set; } = true;
    /// <summary>
    /// 是否显示
    /// </summary>
    public bool IsVisible { get; set; } = true;
    /// <summary>
    /// 按钮的大小：   0= Standard   1=Large
    /// </summary>
    public Autodesk.Windows.RibbonItemSize Size { get; set; } = Autodesk.Windows.RibbonItemSize.Standard;
    /// <summary>
    /// 提示信息
    /// </summary>
    public object? ToolTip { get; set; } = null;
    public RibbonItem()
    {
        Tag = GetType().Name;
    }
}
